package com.medical.controller;

import com.medical.pojo.Demo;
import com.medical.service.DemoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
/**
 *
 * @author Jerry.xu
 * @date 2024/11/21
 */

@RestController
@RequestMapping("/demo")
public class DemoController {
    @Autowired
    private DemoService demoService;

    @GetMapping("findAll")
    public List<Demo> findAll(){
        return demoService.findAll();
    }
}
